<?php
/**
 * The action->dynamic view file of dashboard module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Chunsheng Wang <chunsheng@cnezsoft.com>
 * @package     dashboard
 * @version     $Id: action->dynamic.html.php 1477 2011-03-01 15:25:50Z wwccss $
 * @link        http://www.zentao.net
 */
?>
<?php include '../../common/view/headermodel.html.php';?>
<?php
css::import($jsRoot . 'jquery/chosen/chosen.min.css');
js::import($jsRoot . 'jquery/chosen/chosen.min.js');
?>
<style>
  .table-form > tbody > tr > th, .table-form > tbody > tr > td {
    padding: 5px;
  }
</style>
<?php if($user->leadership == '1') :?>
<form method='post' id='ajaxForm'  action='<?php echo inlink('follow',"id=$process->id")?>'  class='form' name="form1" enctype="multipart/form-data">
  <table class='table-form w-p90'>
    <tr>
      <th class='w-80px'><?php echo $lang->process->monitors;?></th>
      <td class='w-p60'>
        <input class="form-control" id="monitors_idcard" name="monitors_idcard" value="<?php echo $process->monitors_idcard ?>" type="text"  readonly>
      </td>
    </tr>
    <tr>
      <th class='w-80px'><?php echo $lang->process->type;?></th>
      <td class='w-p60'>
        <input class="form-control" id="category" name="category" value="<?php echo $process->category ?>" type="text"  readonly>
      </td>
    </tr>
    <tr>
      <th class='w-80px'><?php echo $lang->process->department;?></th>
      <td>
        <input class="form-control" id="department" name="department" value="<?php echo $process->department_name ?>" type="text"  readonly>
      </td><td></td>
    </tr>
    <tr>
      <th><?php echo $lang->process->desc;?></th>
      <td colspan='2'><?php echo html::textarea('desc', $process->m_content, "rows='6' class='form-control' readonly" );?></td>
    </tr>
    <?php foreach($files as $file) :?>
      <tr>
        <th><?php echo $lang->process->attachment;?></th>
        <td colspan='2'><?php echo html::a($webRoot.'www/data/upload/'.$file->pathname,$file->title,"target='_blank'");?></td>
      </tr>
    <?php endforeach ?>
    <tr>
      <th><?php echo $lang->process->concerned;?></th>
      <td><?php echo html::select('concerned[]', $users, $process->personnel, "class='form-control chosen-select'");?></td><td></td>
    </tr>
    <tr>
      <th><?php echo $lang->process->opinion;?></th>
      <td colspan='2'><?php echo html::textarea('headcontent','', "rows='6' class='form-control'" );?></td>
    </tr>
    <tr><th></th><td><?php echo html::submitButton($lang->process->queren);?></td></tr>
  </table>
</form>
<?php endif ?>
<?php include '../../common/view/footermodel.html.php';?>
